#ifndef __UART__H__
#define __UART__H__

#include "gd32f4xx.h"
#include "NEO_GPS.h"

#define TX_PORT GPIOA
#define TX_PIN GPIO_PIN_9
#define RX_PORT  GPIOA
#define RX_PIN GPIO_PIN_10

#define TX2_PORT GPIOD
#define TX2_PIN GPIO_PIN_8
#define RX2_PORT  GPIOD
#define RX2_PIN GPIO_PIN_9
void uart_config(void);
void uart_send_byte(uint8_t data);
void uart_recv(uint8_t * data, uint8_t len);

void uart2_config(void);
#endif
